let addRoutes = [];
export default addRoutes = [
    {
        path: "/home",
        component: "layout",
        hidden: false,
        redirect: "/index",
        children: [
            {
                path: "/index",
                component: "/homepage/index",
                directory: "/index",
                meta: { title: "首页" },
            },
        ],
    },
    {
        path: "/beds",
        component: "layout",
        hidden: false,
        redirect: "/bedManagement",
        alwaysShow: true,
        meta: { title: "床位管理" },
        children: [
            {
                path: "/bedManagement",
                component: "/beds/index",
                meta: { title: "床位管理" }
            },
        ],
    },
    {
        path: "/patient",
        component: "layout",
        hidden: false,
        redirect: "/patientDetails",
        meta: { title: "患者详情" },
        children: [
            {
                path: "/patientDetails",
                component: "/patient/patientDetails",
                meta: { title: "患者详情" }
            }
        ],
    },
    {
        path: "/patientadd",
        component: "layout",
        hidden: false,
        redirect: "/addPatient",
        meta: { title: "添加患者" },
        children: [
            {
                path: "/addPatient",
                component: "/patient/addPatient",
                redirect: "",
                meta: { title: "添加患者" }
            },
        ],
    },
    // 数据管理 
    {
        path: "/record",
        alwaysShow:true,
        component: "layout",
        hidden: false,
        redirect: "/manageData",
        meta: { title: "数据管理" },
        children: [
            {
                path: "/manageData",
                component: "/record/index",
                redirect: "",
                meta: { title: "数据管理" }
            },
            {
                path: "/patientRecords",
                component: "/record/patientRecords",
                redirect: "",
                hidden: true,
                meta: { title: "数据展示" }
            },
            // {
            //     path: "/tableExhibition",
            //     component: "/record/tableExhibition",
            //     redirect: "",
            //     hidden: true,
            //     meta: { title: "表格展示" }
            // },
            // {
            //     path: "/chartExhibition",
            //     component: "/record/chartExhibition",
            //     redirect: "",
            //     hidden: true,
            //     meta: { title: "折线图展示" }
            // },
        ],
    },
    // 设备管理
    {
        path: "/equipmentHome",
        component: "layout",
        hidden: false,
        redirect: "/equipment",
        meta: { title: "设备管理" },
        children: [
            {
                path: "/equipment",
                component: "/equipment/index",
                redirect: "",
                meta: { title: "设备管理" }
            },
        ],
    },
    // 条形码管理
    {
        path: "/barCodeHome",
        component: "layout",
        hidden: false,
        redirect: "/barCode",
        meta: { title: "条形码管理" },
        children: [
            {
                path: "/barCode",
                component: "/barCode/index",
                redirect: "",
                meta: { title: "条形码管理" }
            },
        ],
    },
    // 质量管理quality
    {
        path: "/qualityHome",
        component: "layout",
        hidden: false,
        redirect: "/quality",
        meta: { title: "质量管理" },
        children: [
            {
                path: "/quality",
                component: "/quality/index",
                redirect: "",
                meta: { title: "质量管理" }
            },
        ],
    },
    // 角色管理
    {
        path: "/extentHome",
        component: "layout",
        hidden: false,
        redirect: "/extent",
        meta: { title: "权限管理" },
        children: [
            {
                path: "/extent",
                component: "/role/index",
                redirect: "",
                meta: { title: "权限管理" }
            },
        ],
    },
    // 科室管理
    {
        path: "/departmentHome",
        component: "layout",
        hidden: false,
        redirect: "/department",
        meta: { title: "科室管理" },
        children: [
            {
                path: "/department",
                component: "/department/index",
                redirect: "",
                meta: { title: "科室管理" , icon : ""}
            },
        ],
    },
    // 出院患者
    {
        path: "/leaveHospital",
        component: "layout",
        hidden: false,
        redirect: "/recoveryPatient",
        meta: { title: "出院患者" },
        children: [
            {
                path: "/recoveryPatient",
                component: "/leaveHospital/recoveryPatient",
                redirect: "",
                meta: { title: "出院患者" , icon : ""}
            },
        ],
    },
    // 404
    {
        path: "*",
        component: "layout",
        hidden: true,
        redirect: "/404",
        meta: { title: "网页丢失" },
        children: [
            {
                path: "/404",
                component: "/404/index",
                redirect: "",
                meta: { title: "网页丢失" , icon : ""}
            },
        ],
    },
];